// 电影的路由模块
const router = [
  {
    path: '/films',
    name: 'films',
    component: () => import(/*webpackChunkName:'films' */'@/views/films'),
    redirect: '/films/nowplaying',
    children: [
      {
        path: 'nowplaying',
        component: () => import(/*webpackChunkName:'films_nowplaying' */'@/views/films/component/Nowplaying'),
      },
      {
        path: 'comingsoon',
        component: () => import(/*webpackChunkName:'films_comingsoon' */'@/views/films/component/Comingsoon'),
      },
    ]
  },
  // 电影详情
  {
    path: '/film/:id',
    component: () => import(/*webpackChunkName:'film_detail' */'@/views/film'),
  }
]

export default router